package org.jeecg.modules.purchase.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException;

/**
 * @Description: 联系人
 * @Author: jeecg-boot
 * @Date:   2022-11-15
 * @Version: V1.0
 */
@ApiModel(value="purchase_provider_contacts对象", description="联系人")
@Data
@TableName("purchase_provider_contacts")
public class PurchaseProviderContacts implements Serializable {
    private static final long serialVersionUID = 1L;

	/**ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;
	/**供应商id*/
    @ApiModelProperty(value = "供应商id")
    private String providerId;
	/**供应商编码*/
//	@Excel(name = "供应商编码", width = 15)
    @ApiModelProperty(value = "供应商编码")
    private String providerCode;
	/**联系人姓名*/
	@Excel(name = "联系人姓名", width = 15)
    @ApiModelProperty(value = "联系人姓名")
    private String contactsName;
	/**联系人电话*/
	@Excel(name = "联系人电话", width = 15)
    @ApiModelProperty(value = "联系人电话")
    private String contactsPhone;
	/**联系人职位*/
	@Excel(name = "联系人职位", width = 15, dicCode = "purchase_contacts_position")
	@Dict(dicCode = "purchase_contacts_position")
    @ApiModelProperty(value = "联系人职位")
    private String contactsPosition;
	/**联系人邮箱*/
	@Excel(name = "联系人邮箱", width = 15)
    @ApiModelProperty(value = "联系人邮箱")
    private String contactsMail;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @TableField(fill=FieldFill.INSERT)
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(fill=FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**最后修改人*/
    @ApiModelProperty(value = "最后修改人")
    @TableField(fill=FieldFill.INSERT_UPDATE)
    private String updateBy;
	/**最后修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(fill=FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "最后修改时间")
    private Date updateTime;
    /**逻辑删除 */
    @TableLogic
//    @Excel(name = "逻辑删除 ", width = 15)
    @ApiModelProperty(value = "逻辑删除 0:未删除  1:删除")
    private Integer delFlag;
	/**当前登录用户部门编号*/
    @ApiModelProperty(value = "当前登录用户部门编号")
    private String sysOrgCode;
	/**租户ID*/
//	@Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private String tenantId;
}
